<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
   
        <div class="col-md-6">
           <form action="{:url('blog/Promotion/zhePost')}" method="post" class="form-horizontal js-ajax-form margin-top-20" id="ssss">
           <div class="row">
               <div class="col-md-9">
                   <table class="table table-bordered">
                       <tr>
                           <th width="100">选择商品<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control" readonly="readonly" type="text" style="width: 250px;" id="proid" name="proid" required value="" placeholder="选择存入的商品"/>
                               <input type="button" value="选择商品" onclick="open('{:url('Promotion/goodslist')}',800,500)">
                           </td>
                       </tr>
                       <tr>
                           <th width="100">折扣主题<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control" type="text" style="width: 400px;" name="c_plan" required placeholder="折扣主题"/>
                           </td>
                       </tr>
                       <tr>
                           <th width="100">开始时间<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control js-bootstrap-datetime" type="text" style="width: 250px;" name="c_start" required placeholder="输入折扣开始时间"/>
                           </td>
                       </tr>
                       <tr>
                           <th width="100">结束时间<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control js-bootstrap-datetime" type="text" style="width: 250px;" name="c_end" required placeholder="输入折扣结束时间"/>
                           </td>
                       </tr>
                       <tr>
                           <th width="100">店铺类型<span class="form-required">√</span></th>
                           <td>
                               <select name="storetype" class="form-control" style="width: 200px;">
                                   <foreach name="listone" item="vo">
                                   <option value="{$vo.id}">{$vo.cat_name}</option>
                                   </foreach>
                               </select>
                           </td>
                       </tr>
                       <tr>
                           <th width="100">折扣类型<span class="form-required">√</span></th>
                           <td>
                               <select name="c_rebateid" class="form-control" style="width: 200px;">
                                   <foreach name="list" item="vo">
                                   <option value="{$vo.re_id}">{$vo.re_name}</option>
                                   </foreach>
                               </select>
                           </td>
                       </tr>
                       <tr>
                           <th width="100">优惠金额<span class="form-required">√</span></th>
                           <td>
                               <input class="form-control" type="text" style="width: 200px;" name="c_rate" required placeholder="要优惠的金额"/>
                           </td>
                       </tr>

                       
                   </table>
               </div>
           </div>
                    <button type="submit" class="btn btn-primary">提交</button>
       </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/product.js"></script>
</body>
</html>
<script>
    function cha(){
    /*var gooid = document.getElementById("proid").value;
    alert(gooid);
    $.ajax({
        type:"Post",
        url:"/blog/Promotion/zhePost",
        data:{goodsid:gooid},
        success:function(data){
            console.log(data);
        }
    });
    $.post("{:url('Promotion/zhePost')}",{goodsid:gooid},function(msg){
        //alert(data.msg);
    },'json');*/
    }
</script>